package example.lesson02_03;

import java.util.Scanner;

public class TestScanner {
    public static void main(String[] args){
        //创建 Scanner 对象,System.in 系统的 ‘标准输入流’
        Scanner input = new Scanner(System.in);

        System.out.println("int:");
        //获取用户输入的整数
        int i = input.nextInt();
        //消耗掉用户输入的 换行符
        input.nextLine();
        System.out.println("double:");
        double d = input.nextInt();
        input.nextLine();


        System.out.println("string:");
        String str = input.nextLine();

        System.out.println(i+":"+ d + ":" + str);

    }

}
